{{--
  -- Created by PhpStrom
  -- User: 郭碧云
  -- Date: 2021/6/8 8:49
  -- Desc:
  --}}

@extends("layout.admin")

@section("title")
    用户详情
@endsection

@section("content")
    <style>
        .layui-input:disabled, .layui-input[disabled] {
            color: #333333;
            opacity: 1;
            -webkit-text-fill-color: #333333;
        / / ios 和 安卓9 .0 必须添加此属性，才会生效 -webkit-opacity: 1;
        }

        .layui-form-label {
            width: 88px;
        }

        .layui-input-inline {
            width: auto !important;
            margin-left: -11px !important;
        }
    </style>
    <link rel="stylesheet" href="{{asset('css/public.css')}}" media="all"/>
    <div class="layui-col-md6 layui-col-xs12">
        <div class="layui-form-item">
            <label class="layui-form-label">名称：</label>
            <div class="layui-input-block layui-input-inline">
                <input type="text" value="{{$data["name"]}}" disabled class="layui-input" style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">分组：</label>
            <div class="layui-input-block layui-input-inline">
                <input type="text" value="{{$data["group_name"]}}" disabled class="layui-input"
                       style="border: 0 !important;">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">父级：</label>
            <div class="layui-input-block layui-input-inline">
                <input type="text" value="{{$data["parent_name"]}}" disabled class="layui-input"
                       style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">编码：</label>
            <div class="layui-input-block layui-input-inline">
                <input type="text" value="{{$data["code"]}}" disabled class="layui-input"
                       style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-block layui-input-inline">
                <input type="text" @if($data["status"]==0) value="禁用" @else value="启用" @endif disabled
                       class="layui-input" style="border: 0 !important;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">课程标签组：</label>
            <div class="layui-input-block layui-input-inline" style="margin-top: 11px;">
                <textarea rows="3" cols="30" disabled class="layui-input" style="border: 0 !important;">@foreach($data["course_tag_group"] as $ctp){{$ctp["name"]}}、@endforeach</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">考试标签组：</label>
            <div class="layui-input-block layui-input-inline" style="margin-top: 11px;">
                <textarea rows="3" cols="30" disabled class="layui-input" style="border: 0 !important;">@foreach($data["exam_tag_group"] as $etp){{$etp["name"]}}、@endforeach </textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn layui-btn-normal"
                        onclick='window.location.href="javascript:history.go(-1)"'>返回
                </button>
            </div>
        </div>
    </div>
@endsection
